module.exports = {
    userFormateError: {
        code: '1001',
        message: "用户或密码为空",
        result: ""
    },
    userAlreadyExited: {
        code: '1002',
        message: "用户已经存在",
        result: ""
    },
    userRegisterError: {
        code: '1003',
        message: "用户注册错误",
        result: ""
    },
    userDoesNotExist: {
        code: '1004',
        message: "用户不存在",
        result: ""
    },
    userLoginError: {
        code: '1005',
        message: "用户登陆失败",
        result: ""
    },
    invalidPasswordError: {
        code: '1006',
        message: "密码不匹配",
        result: ""
    },
    // -----
    tokenExpiredError: {
        code: '10101',
        message: "Token过期",
        result: ""
    },
    invalidToken: {
        code: '10102',
        message: "无效Token",
        result: ""
    },
    hasNotAdminPermission: {
        code: '10103',
        message: "没有管理员权限",
        result: ""
    },
    // -------
    fileUploadError: {
        code: '10201',
        message: "商品图片上传失败",
        result: ""
    },
    unSupportedFileType: {
        code: '10202',
        message: "文件类型不支持",
        result: ""
    },
    goodsFormatError: {
        code: '10203',
        message: "商品参数格式错误",
        result: ""
    },
    publishGoodsError: {
        code: '10204',
        message: "商品创建错误",
        result: ""
    },
    invalidGoodsID: {
        code: '10205',
        message: "无效的商品ID",
        result: ""
    },
    // ---
    cartAddError: {
        code: '10301',
        message: "商品添加失败",
        result: ""
    },
    cartFormatError: {
        code: '10302',
        message: "购物车数据格式错误",
        result: ""
    },
    // ----
    addressFormatError: {
        code: '10301',
        message: "地址数据格式错误",
        result: ""
    },
    addresAddError: {
        code: '10302',
        message: "地址添加失败",
        result: ""
    },
    // ----
    orderFormatError: {
        code: '10401',
        message: "订单数据格式错误",
        result: ""
    },
    orderAddError: {
        code: '10402',
        message: "订单添加失败",
        result: ""
    }
}